import request from '@/utils/request';

/**
 * GET 回款系数审批页面详情展示
 * @pathParam apiVersion true
 * @queryParam examineId false
 * @queryParam projectId false
 * @queryParam versionId false
 */
export function getApprovalDetailUsingGET({ params, data }) {
  return request('returnCoefficient/approvalDetail ', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 查询回款系数审批预览数据App
 * @pathParam apiVersion true
 * @queryParam examineId false
 * @queryParam projectId false
 * @queryParam versionId false
 */
export function approvalPreviewAppUsingGET({ params, data }) {
  return request('returnCoefficient/approvalPreviewApp', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 审批校验
 * @pathParam apiVersion true
 * @queryParam versionId true
 */
export function approvedCheckUsingGET_1({ params, data }) {
  return request('returnCoefficient/approvedCheck', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * POST 新建调整版回款系数
 * @pathParam apiVersion true
 * @queryParam projectId true
 */
export function createUsingPOST({ params, data }) {
  return request('returnCoefficient/create', {
    method: 'POST',
    params,
    data,
  });
}

/**
 * POST 全量生成实际版回款系数
 * @pathParam apiVersion true
 */
export function createAllPracticalUsingPOST({ params, data }) {
  return request('returnCoefficient/createAllPractical', {
    method: 'POST',
    params,
    data,
  });
}

/**
 * POST 自动生成实际版回款系数
 * @pathParam apiVersion true
 * @queryParam projectId true
 */
export function createPracticalUsingPOST({ params, data }) {
  return request('returnCoefficient/createPractical', {
    method: 'POST',
    params,
    data,
  });
}

/**
 * DELETE 删除回款系数
 * @pathParam apiVersion true
 * @queryParam versionId true
 */
export function delUsingDELETE({ params, data }) {
  return request('returnCoefficient/del', {
    method: 'DELETE',
    params,
    data,
  });
}

/**
 * POST 根据项目id生成投资正式版
 * @pathParam apiVersion true
 * @queryParam projectId true
 */
export function getInvestUsingPOST({ params, data }) {
  return request('returnCoefficient/getInvest', {
    method: 'POST',
    params,
    data,
  });
}

/**
 * GET 调整板回款系数编辑页面展示
 * @pathParam apiVersion true
 * @queryParam versionId true
 */
export function queryDetailUsingGET({ params, data }) {
  return request('returnCoefficient/queryCompileDetail', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 查询回款系数详情
 * @pathParam apiVersion true
 * @queryParam versionId true
 */
export function returnCoefficientDetailUsingGET({ params, data }) {
  return request('returnCoefficient/queryDetail', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 查询回款系数版本列表
 * @pathParam apiVersion true
 * @queryParam projectId true
 * @queryParam versionType true
 */
export function getReturnVersionListUsingGET({ params, data }) {
  return request('returnCoefficient/queryVersion', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * PUT 回款系数编辑页面保存
 * @pathParam apiVersion true
 * @bodyParam param true
 */
export function createSupplyBudgetVersionUsingPUT({ params, data }) {
  return request('returnCoefficient/saveDetail', {
    method: 'PUT',
    params,
    data,
  });
}

/**
 * POST 提交到OA审批
 * @pathParam apiVersion true
 * @bodyParam returnCoefficientContentVo true
 */
export function submitToOAUsingPOST_1({ params, data }) {
  return request('returnCoefficient/submitToOA', {
    method: 'POST',
    params,
    data,
  });
}

/**
 * PUT 修改审批状态仅供测试使用
 * @pathParam apiVersion true
 * @queryParam versionId true
 * @queryParam versionState true
 */
export function updateStateUsingPUT({ params, data }) {
  return request('returnCoefficient/updateState', {
    method: 'PUT',
    params,
    data,
  });
}
